// 向后台hot接口发送数据请求
export const hotRequest = () => {
    return fetch('http://106.12.79.128:666/search/hot')
    .then(body => body.json())
}

// 向后台search接口发送数据请求
export const searchRequest = (msg) => {
    return fetch('http://106.12.79.128:666/search/suggest?keywords='+msg)
    .then(body => body.json())
}